home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / gnulib / ghostscr / gcc__b6r.mak < prev    next >
Encoding:
Makefile  |  1990-12-31  |  3.2 KB  |  114 lines

  1. #    Copyright (C) 1989, 1990 Aladdin Enterprises.  All rights reserved.
  2. #    Distributed by Free Software Foundation, Inc.
  3. #
  4. # This file is part of Ghostscript.
  5. #
  6. # Ghostscript is distributed in the hope that it will be useful, but
  7. # WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. # to anyone for the consequences of using it or for whether it serves any
  9. # particular purpose or works at all, unless he says so in writing.  Refer
  10. # to the Ghostscript General Public License for full details.
  11. #
  12. # Everyone is granted permission to copy, modify and redistribute
  13. # Ghostscript, but only under the conditions described in the Ghostscript
  14. # General Public License.  A copy of this license is supposed to have been
  15. # given to you along with Ghostscript so you can know your rights and
  16. # responsibilities.  It should be in a file named COPYING.  Among other
  17. # things, the copyright notice and this notice must be preserved on all
  18. # copies.
  19.  
  20. # makefile for Ghostscript, Unix/gcc/X11 configuration.
  21.  
  22. # ------------------------------- Options ------------------------------- #
  23.  
  24. ####### The following are the only parts of the file you should need to edit.
  25.  
  26. # ------ Generic options ------ #
  27.  
  28. # Define the default directory/ies for the runtime
  29. # initialization and font files.  Separate multiple directories with a :.
  30. # `pwd` means use the directory in which the 'make' is being done.
  31.  
  32. GS_LIB_DEFAULT=`pwd`:`pwd`/fonts
  33.  
  34. # Choose generic configuration options.
  35.  
  36. # -DDEBUG
  37. #    includes debugging features (-Z switch) in the code.
  38. #      Code runs substantially slower even if no debugging switches
  39. #      are set.
  40. # -DNOPRIVATE
  41. #    makes private (static) procedures and variables public,
  42. #      so they are visible to the debugger and profiler.
  43. #      No execution time or space penalty.
  44.  
  45. GENOPT=
  46.  
  47. # ------ Platform-specific options ------ #
  48.  
  49. # Define the name of the C compiler.
  50.  
  51. CC=gcc
  52.  
  53. # Define the other compilation flags.
  54. # Add -DBSD4_2 for 4.2bsd systems.
  55. # Add -DUSG (GNU convention) or -DSYSV for System V.
  56. # We don't include -ansi, because this gets in the way of the platform-
  57. #   specific stuff that <math.h> typically needs.
  58.  
  59. CFLAGS=-g -O
  60.  
  61. # Define platform flags for ld.
  62. # Most Unix systems accept -X, but some don't.
  63. # Sun OS4.n needs -Bstatic.
  64.  
  65. LDPLAT=-X
  66.  
  67. # Define any extra libraries to link into the executable.
  68. # The default is for X Windows.
  69.  
  70. EXTRALIBS= -lX11
  71.  
  72. # --------------------------- Choice of devices --------------------------- #
  73.  
  74. # Choose the device(s) to include.  See gdevs.mak for details.
  75.  
  76. DEVICES=x11
  77. DEVICE_OBJS=$(x11_)
  78.  
  79. # ---------------------------- End of options --------------------------- #
  80.  
  81. # Define the name of the makefile -- used in dependencies.
  82.  
  83. MAKEFILE=unix-gcc.mak
  84.  
  85. # Define the extensions for the object and executable files.
  86.  
  87. OBJ=o
  88. XE=
  89.  
  90. # Define the ANSI-to-K&R dependency.  (gcc accepts ANSI syntax.)
  91.  
  92. AK=
  93.  
  94. # Define the directory separator and shell quote string.
  95.  
  96. DS=/
  97. Q=\"
  98.  
  99. # Define the compilation rules.
  100.  
  101. CCFLAGS=$(GENOPT) $(CFLAGS)
  102.  
  103. .c.o:
  104.     $(CC) $(CCFLAGS) -c $*.c
  105.  
  106. CCA=$(CC) $(CCFLAGS) -c
  107. CCNA=$(CCA)
  108. CCINT=$(CCA)
  109.  
  110. # --------------------------- Generic makefile ---------------------------- #
  111.  
  112. # The remainder of the makefile (ghost.mak, gdevs.mak, and unixtail.mak)
  113. # is generic.  tar_gs concatenates all these together.
  114.